package com.netty.rpc.common.container;

import com.netty.rpc.loadbalance.LoadBalanceExcutor;
import com.netty.rpc.monitor.trace.Monitor;
import com.netty.rpc.protocol.client.IClientExcutor;
import com.netty.rpc.protocol.client.RequestInterceptor;
import com.netty.rpc.protocol.client.ResponseHandler;
import com.netty.rpc.protocol.server.RequestHandler;
import com.netty.rpc.protocol.server.ServerExcutor;
import com.netty.rpc.registry.ClientDiscovery;



public class ExecutorContainer {

    private IClientExcutor clientExecutor;
    private ServerExcutor serverExcutor;

    private RequestHandler serverRequestHandler;
    private RequestInterceptor requestInterceptor;
    private ResponseHandler responseHandler;

    private LoadBalanceExcutor loadBalanceExcutor;

    private ClientDiscovery clientDiscovery;

    private Monitor monitor;

    public IClientExcutor getClientExecutor() {
        return clientExecutor;
    }

    public void setClientExecutor(IClientExcutor clientExecutor) {
        this.clientExecutor = clientExecutor;
    }

    public ServerExcutor getServerExecutor() {
        return serverExcutor;
    }

    public void setServerExecutor(ServerExcutor serverExcutor) {
        this.serverExcutor = serverExcutor;
    }

    public RequestHandler getServerRequestHandler() {
        return serverRequestHandler;
    }

    public void setServerRequestHandler(RequestHandler serverRequestHandler) {
        this.serverRequestHandler = serverRequestHandler;
    }

    public RequestInterceptor getRequestInterceptor() {
        return requestInterceptor;
    }

    public void setRequestInterceptor(RequestInterceptor requestInterceptor) {
        this.requestInterceptor = requestInterceptor;
    }

    public ResponseHandler getResponseHandler() {
        return responseHandler;
    }

    public void setResponseHandler(ResponseHandler responseHandler) {
        this.responseHandler = responseHandler;
    }

    public LoadBalanceExcutor getLoadBalanceExecutor() {
        return loadBalanceExcutor;
    }

    public void setLoadBalanceExecutor(LoadBalanceExcutor loadBalanceExcutor) {
        this.loadBalanceExcutor = loadBalanceExcutor;
    }

    public ClientDiscovery getClientDiscovery() {
        return clientDiscovery;
    }

    public void setClientDiscovery(ClientDiscovery clientDiscovery) {
        this.clientDiscovery = clientDiscovery;
    }

    public Monitor getMonitor() {
        return monitor;
    }

    public void setMonitor(Monitor monitor) {
        this.monitor = monitor;
    }
}
